package com.wondersgroup.framework.sample.component.form.action;

import com.wondersgroup.framework.core.web.struts2.action.BaseAjaxAction;
import com.wondersgroup.framework.core5.model.vo.ValueObject;
import com.wondersgroup.framework.sample.component.form.vo.TreeSelectSubmitVO;
import java.io.PrintStream;

public class TreeSelectSubmitAction extends BaseAjaxAction
{
  private TreeSelectSubmitVO treeSelectSubmitVO;

  public TreeSelectSubmitAction()
  {
    this.treeSelectSubmitVO = new TreeSelectSubmitVO();
  }

  public ValueObject getValueObject() {
    return this.treeSelectSubmitVO;
  }

  protected String operate()
  {
    return super.operate();
  }

  public String submitTreeSelect() {
    System.out.println("静态单选树：" + this.treeSelectSubmitVO.getCity1());
    System.out.println("动态单选树：" + this.treeSelectSubmitVO.getCity2());
    System.out.println("多选树：" + this.treeSelectSubmitVO.getCity());
    return "ajax";
  }
}